//
//  TCLYSettingTableViewCell.m
//  YuErmuYing
//
//  Created by LYang on 16/8/22.
//  Copyright © 2016年 Tiancheng. All rights reserved.
//

#import "TCLYSettingTableViewCell.h"
#import "Macros.h"
#import "Masonry.h"

@implementation TCLYSettingTableViewCell
-(instancetype) initWithReuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier]) {
        self.settingLabel = [[UILabel alloc] init];
        self.settingLabel.textAlignment = NSTextAlignmentLeft;
        self.settingLabel.textColor =blackFont;
        self.settingLabel.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.settingLabel];
        [self.settingLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.mas_equalTo(self);
            make.left.mas_equalTo(self.mas_left).offset(6);
            make.width.mas_equalTo(100);
            make.height.mas_equalTo(30);
            
        }];
        UIImageView * rightIamgeView = [[UIImageView alloc] init];
        rightIamgeView.image = [UIImage imageNamed:@"right"];
        [self addSubview:rightIamgeView];
        [rightIamgeView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.mas_equalTo(self);
            make.right.mas_equalTo(self.mas_right).offset(-12);
            make.width.mas_equalTo(10);
            make.height.mas_equalTo(15);
            
        }];
        
        UIImageView * lineImageView = [[UIImageView alloc] init];
        lineImageView.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:lineImageView];
        [lineImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.mas_equalTo(self.mas_bottom);
            make.left.mas_equalTo(self);
            make.right.mas_equalTo(self);
            make.height.mas_equalTo(1);
        }];
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
